In computer architecture, data is represented and manipulated across various radix (base) number systems. While digital hardware fundamentally executes operations in Binary (Base 2), human engineers utilize higher-order power-of-two representations such as Quaternary (Base 4), Octal (Base 8), and Hexadecimal (Base 16) for compactness and direct bit-level mapping. Non-power-of-two systems such as Decimal (Base 10) and arbitrary radices like Base-5 (Quinary) require general positional algorithms for base conversion.
This problem set provides an exhaustive, mathematically rigorous treatment of base conversions covering integer and fractional parts, power-of-two direct grouping, polynomial expansions, repeated division/multiplication algorithms, and periodic rational representations.
◇Theoretical Foundations & Conversion Algorithms
1. General Positional Number Representation
A real number N represented in radix b with n integer digits and m fractional digits has the value given by the polynomial expansion:
Nb=∑i=0n−1di⋅bi+∑j=1md−j⋅b−j
where dk∈{0,1,…,b−1}.
2. Base b to Decimal (Base 10)
Evaluate the polynomial expansion directly using base-10 arithmetic: Decimal Value=dn−1bn−1+⋯+d1b1+d0b0+d−1b−1+d−2b−2+…
3. Decimal (Base 10) to Target Base b
Integer Part (I10): Successive division by radix b. The remainders form the digits from least significant (d0) to most significant (dn−1): Ik=⌊Ik−1/b⌋,dk=Ik−1(modb)
Fractional Part (F10): Successive multiplication by radix b. The integer parts extracted at each step form the digits from most significant fractional (d−1) downward: d−j=⌊Fj−1⋅b⌋,Fj=(Fj−1⋅b)−d−j
4. Power-of-Two Radix Grouping (2k↔2m)
Because 4=22, 8=23, and 16=24, conversion between binary and these bases does not require intermediate decimal arithmetic:
Binary ↔ Quaternary (Base 4): Group in clusters of 2 bits starting from the radix point (left for integer, right for fraction, zero-padding as necessary).
Binary ↔ Octal (Base 8): Group in clusters of 3 bits starting from the radix point.
Binary ↔ Hexadecimal (Base 16): Group in clusters of 4 bits (nibbles) starting from the radix point.
◇Master Base Conversion Summary Table
The table below presents the completed base conversion matrix for all problems:
Row
Decimal (b=10)
Binary (b=2)
Quaternary (b=4)
Octal (b=8)
Hexadecimal (b=16)
Base-5 (b=5)
1
99.75
1100011.112
1203.34
143.68
63.C16
344.35
2
53.625
110101.1012
311.224
65.58
35.A16
203.305
3
14.9375
1110.11112
32.334
16.748
E.F16
24.43205
4
474.5625
111011010.10012
13122.214
732.448
1DA.916
3344.24015
5
2989.7890625
101110101101.11001012
232231.30224
5655.6248
BAD.CA16
43424.343304022321424112103130004420135
6
84.44
1010100.011100001010001111012
1110.13002203314
124.341217270243656050758
54.70A3D16
314.215
◇Detailed Step-by-Step Problem Solutions
Problem 1: Given Decimal 99.7510
We decompose 99.7510 into Integer Part I=99 and Fractional Part F=0.75.
1.1 Decimal to Binary (b=2)
Integer Part (9910): Repeated division by 2: 99÷249÷224÷212÷26÷23÷21÷2=49R 1(d0)=24R 1(d1)=12R 0(d2)=6R 0(d3)=3R 0(d4)=1R 1(d5)=0R 1(d6)
Reading remainders from bottom to top: 9910=11000112.
Fractional Part (0.7510): Repeated multiplication by 2: 0.75×20.50×2=1.50⟹Integer digit 1(d−1),Fractional remainder 0.50=1.00⟹Integer digit 1(d−2),Fractional remainder 0.00
Thus, 0.7510=0.112.
Combined Result: 99.7510=1100011.112
1.2 Binary to Quaternary (b=4)
Group the binary digits into 2-bit blocks relative to the radix point: 101210000311.311 99.7510=1203.34 Verification via powers of 4: 1(43)+2(42)+0(41)+3(40)+3(4−1)=64+32+0+3+0.75=99.7510✓
1.3 Binary to Octal (b=8)
Group the binary digits into 3-bit blocks relative to the radix point (pad with leading/trailing zeros): 100141003011.6110 99.7510=143.68 Verification via powers of 8: 1(82)+4(81)+3(80)+6(8−1)=64+32+3+0.75=99.7510✓
1.4 Binary to Hexadecimal (b=16)
Group the binary digits into 4-bit nibbles relative to the radix point: 6011030011.C1100 99.7510=63.C16 Verification via powers of 16: 6(161)+3(160)+12(16−1)=96+3+0.75=99.7510✓
1.5 Decimal to Base-5 (b=5)
Integer Part (9910): Repeated division by 5: 99÷519÷53÷5=19R 4(d0)=3R 4(d1)=0R 3(d2)
Reading bottom to top: 9910=3445.
Fractional Part (0.7510): Repeated multiplication by 5: 0.75×50.75×5=3.75⟹digit 3,fraction 0.75=3.75⟹digit 3,fraction 0.75(repeats indefinitely)
The fraction is strictly periodic: 0.7510=0.35. Analytic Verification via Infinite Geometric Series: ∑k=1∞3⋅5−k=3⋅1−5−15−1=3⋅4/51/5=43=0.7510✓
Combined Result: 99.7510=344.35≈344.33335
Problem 2: Given Binary 110101.1012
2.1 Binary to Decimal (b=10)
Expand using positional notation: 110101.1012=1(25)+1(24)+0(23)+1(22)+0(21)+1(20)+1(2−1)+0(2−2)+1(2−3)=32+16+0+4+0+1+0.5+0+0.125=53+0.625=53.62510=538510
2.2 Binary to Quaternary (b=4)
Group in 2-bit pairs from the radix point: 311101101.210210 110101.1012=311.224 Verification:3(42)+1(41)+1(40)+2(4−1)+2(4−2)=48+4+1+0.5+0.125=53.62510✓
2.3 Binary to Octal (b=8)
Group in 3-bit triplets from the radix point: 61105101.5101 110101.1012=65.58 Verification:6(81)+5(80)+5(8−1)=48+5+0.625=53.62510✓
2.4 Binary to Hexadecimal (b=16)
Group in 4-bit nibbles from the radix point: 3001150101.A1010 110101.1012=35.A16 Verification:3(161)+5(160)+10(16−1)=48+5+0.625=53.62510✓
2.5 Decimal to Base-5 (b=5)
Integer Part (5310): 53÷510÷52÷5=10R 3(d0)=2R 0(d1)=0R 2(d2)
Integer: 2035.
Fractional Part (0.62510=5/8): 0.625×50.125×5=3.125⟹digit 3,fraction 0.125=0.625⟹digit 0,fraction 0.625(repeats cycle 30)
Periodic cycle length is 2: 0.62510=0.305. Analytic Verification: 1−5−23⋅5−1+0⋅5−2=24/253/5=53⋅2425=12075=85=0.62510✓
Combined Result: 110101.1012=203.305≈203.30305
Problem 3: Given Quaternary 32.334
3.1 Quaternary to Decimal (b=10)
Expand using positional notation: 32.334=3(41)+2(40)+3(4−1)+3(4−2)=12+2+43+163=14+0.75+0.1875=14.937510=14161510
3.2 Quaternary to Binary (b=2)
Directly replace each quaternary digit by its 2-bit binary equivalent: 34=112,24=102,34=112,34=112 32.334=1110.11112
3.3 Binary to Octal (b=8)
Regroup 1110.11112 in 3-bit triplets: 10016110.71114100 32.334=16.748 Verification:1(81)+6(80)+7(8−1)+4(8−2)=8+6+6456+4=14+6460=14.937510✓
3.4 Binary to Hexadecimal (b=16)
Regroup 1110.11112 in 4-bit nibbles: E1110.F1111 32.334=E.F16 Verification:14(160)+15(16−1)=14+0.9375=14.937510✓
Expand each octal digit into its 3-bit binary equivalent: 78=1112,38=0112,28=0102,48=1002,48=1002 732.448=111011010.10012(or 111011010.1001002)
4.2 Octal to Decimal (b=10)
Expand using positional notation: 732.448=7(82)+3(81)+2(80)+4(8−1)+4(8−2)=7(64)+24+2+84+644=448+26+0.5+0.0625=474.562510=47416910
4.3 Binary to Quaternary (b=4)
Regroup binary 111011010.10012 into 2-bit pairs: 101311101210210.210101 732.448=13122.214 Verification:1(256)+3(64)+1(16)+2(4)+2(1)+2(0.25)+1(0.0625)=474.562510✓
4.4 Binary to Hexadecimal (b=16)
Regroup binary 111011010.10012 into 4-bit nibbles: 10001D1101A1010.91001 732.448=1DA.916 Verification:1(256)+13(16)+10(1)+9(16−1)=256+208+10+0.5625=474.562510✓
4.5 Decimal to Base-5 (b=5)
Integer Part (47410): 474÷594÷518÷53÷5=94R 4(d0)=18R 4(d1)=3R 3(d2)=0R 3(d3)
Integer: 33445.
Expand each hex digit into a 4-bit nibble: B=10112,A=10102,D=11012,C=11002,A=10102 BAD.CA16=101110101101.11001012(or 101110101101.110010102)
5.2 Hexadecimal to Decimal (b=10)
Expand using positional notation: BAD.CA16=11(162)+10(161)+13(160)+12(16−1)+10(16−2)=11(256)+160+13+1612+25610=2816+173+256192+10=2989+256202=2989+128101=2989.789062510
5.3 Binary to Quaternary (b=4)
Regroup 101110101101.110010102 into 2-bit pairs: 210311210210311101.311000210210 BAD.CA16=232231.30224 Verification:2(45)+3(44)+2(43)+2(42)+3(41)+1(40)+3(4−1)+2(4−3)+2(4−4)=2048+768+128+32+12+1+0.75+0.03125+0.0078125=2989.789062510✓
5.4 Binary to Octal (b=8)
Regroup 101110101101.110010102 into 3-bit triplets: 5101611051015101.611020104100 BAD.CA16=5655.6248 Verification:5(512)+6(64)+5(8)+5(1)+86+642+5124=2560+384+40+5+512384+16+4=2989+512404=2989.789062510✓
Fractional Part (0.789062510=101/128):
Successive multiplication by 5 generates a repeating sequence of period length 32 (since the multiplicative order of 5(mod128) is 32):
The repeating sequence of base-5 digits is: 343304022321424112103130004420135 First 8 digits:0.34330402…5. Analytic Verification:∑k=132d−k5−k/(1−5−32)=128101=0.789062510✓
Expand using positional notation: 314.215=3(52)+1(51)+4(50)+2(5−1)+1(5−2)=3(25)+5+4+52+251=75+9+0.4+0.04=84.4410=84251110
6.2 Decimal to Binary (b=2)
Integer Part (8410): 84=64+16+4=26+24+22⟹10101002
Verification via successive division: 84/2=42 R 0,42/2=21 R 0,21/2=10 R 1,10/2=5 R 0,5/2=2 R 1,2/2=1 R 0,1/2=0 R 1
Fractional Part (0.4410=11/25):
Successive multiplication by 2 produces a 20-bit repeating period (since ord25(2)=20): 0.44×20.04×20.64×20.24×20.84×2=0.88→0=0.08→0=1.28→1=0.48→0=1.68→10.88×20.08×20.28×20.48×20.68×2=1.76→1=0.16→0=0.56→0=0.96→0=1.36→10.76×20.16×20.56×20.96×20.36×2=1.52→1=0.32→0=1.12→1=1.92→1=0.72→00.52×20.32×20.12×20.92×20.72×2=1.04→1=0.64→0=0.24→0=1.84→1=1.44→1
Repeating block: 0.011100001010001111012. Analytic Verification: 220−1011100001010001111012=1048575461373=1048575/41943461373/41943=2511=0.4410✓
Fractional part: Group the 20-bit binary cycle into 4-bit nibbles: 7011100000A101030011D1101⟹70A3D16 Analytic Verification: 165−17(164)+0(163)+10(162)+3(161)+13(160)=1048575458752+0+2560+48+13=1048575461373=2511=0.4410✓
Combined Result: 314.215=54.70A3D16≈54.70A3D16
◇Key Takeaways & Exam Strategy
Power-of-Two Fast Paths:
Always route through Binary when converting among Quaternary (22), Octal (23), and Hexadecimal (24). This eliminates complex polynomial arithmetic and division.
Always group outwards from the radix point: pad with zeros to the left for integer components and to the right for fractional components.
Rational Fraction Termination vs. Periodicity:
A fraction in base 10 terminates in base b if and only if all prime factors of the fraction's reduced denominator divide b.
Fractions with denominator 4,8,16,128 (2k) terminate in binary, quaternary, octal, and hexadecimal, but form recurring fractions in Base-5.
Fractions with denominator 25 (52) terminate in Base-5, but form recurring fractions in binary, octal, and hexadecimal.
Validation Checksum:
Always verify the integer value via standard Horner's rule or positional expansion: ∑dibi.